﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using LayoutPlanning.CollaborationService;
using LayoutPlanning.ViewModel;

namespace LayoutPlanning.Model
{
    [Serializable]
    public class StationRelationModel
    {
        public StationRelationModel()
        {
            
        }
        private LayoutModel _layout = new LayoutModel() { Height = 10000, Width = 10000 };

        public ObservableCollection<GraficalObject> DeployedGraficalObjects { get; private set; } =
            new ObservableCollection<GraficalObject>();

        public Workorder CurrentWorkOrder { get; set; } = new Workorder();

        public ObservableCollection<Station> LoadedStations { get; } = new ObservableCollection<Station>();

        public LayoutModel Layout
        {
            get { return _layout; }
            set
            {
                _layout = value?? new LayoutModel() {Height = 10000, Width = 10000};
                _layout.Initialize();
            }
        }
    }
}